<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="include :: header"></head>
<body class="hold-transition skin-blue sidebar-mini">
<section class="content-header">
    <h1>
        物资明细
    </h1>
</section>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-body" id="printDiv">
                    <div style="text-align: center;vertical-align: middle">
                        <!--<img style="display: inline-block;vertical-align: middle" th:src="@{/img/logo.png}" width="74px" height="92px">-->
                        <div style="font-size: 40px;vertical-align: middle;display: inline-block">忠旺机械在库物资明细</div>
                    </div>
                    <div style="text-align: right">时间：[[${nowTime}]]</div>
                    <table style="margin-top: 16px;font-size: large" id="detailTable" width="100%" border="1"
                           cellspacing="0" cellpadding="0">
                        <tr>
                            <td rowspan="7" style="padding: 16px;height: 50px;text-align: center">钢材库明细</td>
                        </tr>
                        <tr>
                            <td style="padding: 16px;height: 50px;text-align: center">类别</td>
                            <td style="padding: 16px;height: 50px;text-align: center">重量（T）</td>
                            <td style="padding: 16px;height: 50px;text-align: center">在库总量（T）</td>
                            <td style="padding: 16px;height: 50px;text-align: center">总价值（亿元）</td>
                        </tr>
                        <tr>
                            <td style="padding: 16px;height: 50px;text-align: center">在干项目钢材总量</td>
                            <td style="padding: 16px;height: 50px;text-align: center">[[${inProSteel}]]</td>
                            <td rowspan="3" style="padding: 16px;height: 50px;text-align: center">[[${allSteelWeight}]]</td>
                            <td rowspan="3" style="padding: 16px;height: 50px"></td>
                        </tr>
                        <tr>
                            <td style="padding: 16px;height: 50px;text-align: center">暂缓项目钢材总量</td>
                            <td style="padding: 16px;height: 50px;text-align: center">[[${stopProSteel}]]</td>
                        </tr>
                        <tr>
                            <td style="padding: 16px;height: 50px;text-align: center">机械常用备件</td>
                            <td style="padding: 16px;height: 50px;text-align: center">[[${spareParts}]]</td>
                        </tr>
                        <tr>
                            <td style="padding: 16px;height: 50px;text-align: center">手工帐</td>
                            <td style="padding: 16px;height: 50px"></td>
                            <td style="padding: 16px;height: 50px"></td>
                            <td style="padding: 16px;height: 50px"></td>
                        </tr>
                        <tr>
                            <td colspan="4" style="padding: 16px;height: 50px"></td>
                        </tr>
                    </table>
                </div>
                <div class="box-footer">
                    <a th:href="@{/material/reportForms/matDetailExcel}"
                       class="btn btn-primary pull-right" style="margin-right: 10px">
                        <span class="Bold">导出</span>
                    </a>
                </div>
            </div>
        </div>
    </div>
</section>
<div th:include="include :: footer"></div>
<script th:inline="javascript">


    $(function () {

        /** 打印 */
        $("#print").click(function () {
            js.print('printDiv');
        });

        /** 提交评价 */
        $("#btn-comment-commit").click(function () {
            js.submit({
                url: ctx + "overview/program/comment",
                data: new FormData($("#commentForm")[0]),
                success: function (result) {
                    location.reload();
                }
            });
        });
    });

</script>
</body>
</html>
